package com.workplan.client.widgets.pastemployees;

import net.customware.gwt.presenter.client.widget.WidgetDisplay;

import com.general.client.basewidget.BaseWidget;
import com.general.client.widgets.styledlist.StyledList;
import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Widget;

public class PastEmployees extends BaseWidget implements
		PastEmployeesPresenter.Display {

	@UiField
	Label label;

	@UiField
	StyledList list;

	private static PastEmployeesUiBinder uiBinder = GWT
			.create(PastEmployeesUiBinder.class);

	interface PastEmployeesUiBinder extends UiBinder<Widget, PastEmployees> {
	}

	public PastEmployees() {
		initWidget(uiBinder.createAndBindUi(this));
		label.setText("Past Employees");
	}

	@Override
	public void addListItem(WidgetDisplay display) {
		list.add(display.asWidget());
	}

}
